/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package utils;

import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.servlet.jsp.tagext.TryCatchFinally;

/**
 *
 * @author marcos
 */
public class RedirecionaSites {
    FacesContext fc = FacesContext.getCurrentInstance();
    ExternalContext ec = fc.getExternalContext();
    public void redireciona(String s){
        try {
            ec.redirect(s);
        } catch (IOException ex) {
            Logger.getLogger(RedirecionaSites.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
